<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>石家庄一卡通有限公司</title>
<script type="text/javascript" language="javascript"
	src="${cardPath}/common/levelone.js"></script>
<script type="text/javascript" language="javascript"
	src="${cardPath}/common/level_init.js"></script>
<link href="${cardPath}/images/css.css" rel="stylesheet" type="text/css">
</head>
<style>
a:link {
	font-size: 12px;
	color: #06482a;
	text-decoration: none;
}

a:visited {
	font-size: 12px;
	color: #06482a;
	text-decoration: none;
}

a:hover {
	font-size: 12px;
	color: #FF0000;
	text-decoration: underline;
}

a:active {
	font-size: 12px;
	color: #FF0000;
	text-decoration: none;
}
/**验证码***/
        .code
        {
            background-image:url(code.jpg);
            font-family:Arial;
            font-style:italic;
            color:Red;
            border:0;
            padding:2px 3px;
            letter-spacing:3px;
            font-weight:bolder;
        }
        .unchanged
        {
            border:0;
        }
  @media all {
		IE\:HOMEPAGE {behavior:url(#default#homepage)}
}
  
</style>
<body>
<table width="945" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td><img src="${cardPath}/images/index_02.jpg" width="945"
			height="93" useMap="#cardMap" style="border:0"/>
			<map name="cardMap">
				<area shape="rect"  coords="750,15,855,26" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage(location.href);"></area>
				<area shape="rect"  coords="855,15,956,26" onclick="addFavorit()"/>
			</map>
			<script>

			function addFavorit(){
				window.external.AddFavorite(location.href,"石家庄一卡通有限公司");
				}
			</script>
			
			</td>
	</tr>
</table>
<table width="945" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td valign="top"><img src="${cardPath}/images/index_04.jpg"
			width="945" height="5" /></td>
	</tr>
</table>
<table width="945" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td width="21"><img src="${cardPath}/images/index_06.jpg"
			width="21" height="32" /></td>
		<td width="903" align="center" background="${cardPath}/images/index_08.jpg">
		<script type="text/javascript"
			language="javascript">
				initLevelOne();
			</script>
		</td>
		<td width="21"><img src="${cardPath}/images/index_07.jpg"
			width="21" height="32" /></td>
	</tr>
</table>
<table width="945" height="15" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td></td>
	</tr>
</table>
<table width="945" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td><script type="text/javascript">
	var pic_width = 945
	var pic_height = 198
	var text_height = 0
	var swfpath = '${cardPath}/images/focus.swf'
	var swf_height = pic_height + text_height
	var pics = '${cardPath}/images/q1.jpg|${cardPath}/images/q2.jpg|${cardPath}/images/q3.jpg|${cardPath}/images/q4.jpg'
	var links = '#|#|#|#'
	var texts = '||'
	document
			.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'
					+ pic_width + '" height="' + swf_height + '">');
	document
			.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="' + swfpath + '"><param name="quality" value="high"><param name="bgcolor" value="#ffffff">');
	document
			.write('<param name="menu" value="false"><param name=wmode value="opaque">');
	document.write('<param name="FlashVars" value="pics=' + pics + '&links='
			+ links + '&texts=' + texts + '&borderwidth=' + pic_width
			+ '&borderheight=' + pic_height + '&textheight=' + text_height
			+ '">');
	document
			.write('<embed src="'
					+ swfpath
					+ '" wmode="opaque" FlashVars="pics='
					+ pics
					+ '&links='
					+ links
					+ '&texts='
					+ texts
					+ '&borderwidth='
					+ pic_width
					+ '&borderheight='
					+ pic_height
					+ '&textheight='
					+ text_height
					+ '" menu="false" bgcolor="#ffffff" quality="high" width="'
					+ pic_width
					+ '" height="'
					+ pic_height
					+ '" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');

//打开单条新闻
function openN(Id){
	window.open("viewCon_News.action?id="+Id,"top");
}
//打开更多
function openMoreNews(){
	window.open("viewMore_News.action","top");
}

//打开单条问题详细信息
function openF(Id){
	window.open("viewCon_Faq.action?id="+Id,"top");
}
//打开更多
function openMoreFaqs(){
	window.open("viewMore_Faq.action","top");
}


//打开单条用卡知识详细信息
function openCW(Id){
	window.open("viewCon_cardWay.action?id="+Id,"blank");
}
//打开更多
function openMoreCW(){
	window.open("viewMore_cardWay.action","blank");
}
//打开商户信息内容。
function openMerch(Id){
	window.open("viewCon_Merch.action?id="+Id,"blank");
}
//打开更多商户信息内容。
function openMoreMerchs(){
	window.open("viewMore_Merch.action","blank");
}

var code ; //在全局 定义验证码
function createCode()
{ 
  code = "";
  var codeLength = 6;//验证码的长度
  var checkCode = document.getElementById("checkCode");
  var selectChar = new Array(0,1,2,3,4,5,6,7,8,9,'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z');//所有候选组成验证码的字符，当然也可以用中文的
   
  for(var i=0;i<codeLength;i++)
  {
 
   
  var charIndex = Math.floor(Math.random()*36);
  code +=selectChar[charIndex];
  
  
  }
//  alert(code);
  if(checkCode)
  {
    checkCode.className="code";
    checkCode.value = code;
  }
  
}

 function validate ()
{
  var inputCode = document.getElementById("yanzh").value;
  if(inputCode.length <=0)
  {
      alert("请输入验证码！");
      return false;
  }
  else if(inputCode != code )
  {
     alert("验证码输入错误！");
     createCode();//刷新验证码
     return false;
  }
  else
  {
    return true;
  }
  
  }

 function loginMerch(){

	 //验证码
		if(validate ()){
		if(document.getElementById("mname").value==""||document.getElementById("mpwd").value==""){
			alert('用户名或密码不能为空！');
		 }else{
			 document.forms["merch"].submit();
			 }
	}
 }
</script>
		<form id=news action="viewCon_News.action" method="post"><input
			type="hidden" name="id" /></form>
		</td>
	</tr>
</table>
<table width="945" height="15" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td></td>
	</tr>
</table>
<table width="945" height="576" border="0" align="center"
	cellpadding="0" cellspacing="0">
	<tr>
		<td width="668" valign="top">
		<table width="668" height="185" border="0" cellpadding="0"
			cellspacing="0">
			<tr>
				<td width="333" valign="top">
				<table width="333" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td width="13"><img src="${cardPath}/images/index_16.jpg"
							width="13" height="25" /></td>
						<td width="71" valign="bottom"
							background="${cardPath}/images/index_17.jpg" class="heic">
						<div align="center">公司新闻</div>
						</td>
						<td background="${cardPath}/images/index_19.jpg">
						<div align="right" class="bai" style="cursor: hand"
							onclick="openMoreNews()">更多&gt;&gt;</div>
						</td>
						<td width="13"><img src="${cardPath}/images/index_21.jpg"
							width="13" height="25" /></td>
					</tr>
				</table>
				<table width="333" height="5" border="0">
					<tr>
						<td></td>
					</tr>
				</table>
				<table width="332" height="162" border="0" cellpadding="0"
					cellspacing="0" class="bk">
					<tr>
						<td valign="top">
						<table width="95%" border="0" align="center" cellpadding="0"
							cellspacing="0">
							<c:forEach items="${news}" var="nw">
								<tr>
									<td width="81%" height="25"
										background="${cardPath}/images/bg_1.gif"><span
										class="hei" style="cursor: hand" onclick="openN(${nw.newsid})">${nw.newstitle}</span></td>
									<td width="19%" background="${cardPath}/images/bg_1.gif"
										class="hei">${nw.newsdate }</td>
								</tr>
							</c:forEach>

						</table>
						</td>
					</tr>
				</table>
				</td>
				<td>&nbsp;</td>
				<td width="333" valign="top">
				<table width="333" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td width="13"><img src="${cardPath}/images/index_16.jpg"
							width="13" height="25" /></td>
						<td width="71" valign="bottom"
							background="${cardPath}/images/index_17.jpg" class="heic">
						<div align="center">商户联盟</div>
						</td>
						<td background="${cardPath}/images/index_19.jpg">
						<div align="right" class="bai" style="cursor: hand"
							onclick="openMoreMerchs()">更多&gt;&gt;</div>
						</td>
						<td width="13"><img src="${cardPath}/images/index_21.jpg"
							width="13" height="25" /></td>
					</tr>
				</table>
				<table width="333" height="5" border="0">
					<tr>
						<td></td>
					</tr>
				</table>
				<table width="332" height="162" border="0" cellpadding="0"
					cellspacing="0" class="bk">
					<tr>
						<td valign="top">
						<table width="95%" border="0" align="center" cellpadding="0"
							cellspacing="0">
							<c:forEach items="${merchs}" var="m">
								<tr>
									<td width="81%" height="25"
										background="${cardPath}/images/bg_1.gif"><span
										class="hei" style="cursor: hand" onclick="openMerch(${m.mid})">${m.mname}</span></td>
									<td width="19%" background="${cardPath}/images/bg_1.gif"
										class="hei">${m.mdate }</td>
								</tr>
							</c:forEach>
						</table>
						</td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		<table width="668%" height="7" border="0" cellpadding="0"
			cellspacing="0">
			<tr>
				<td></td>
			</tr>
		</table>
		<table width="668" height="185" border="0" cellpadding="0"
			cellspacing="0">
			<tr>
				<td width="333" valign="top">
				<table width="333" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td width="13"><img src="${cardPath}/images/index_16.jpg"
							width="13" height="25" /></td>
						<td width="71" valign="bottom"
							background="${cardPath}/images/index_17.jpg" class="heic">
						<div align="center">常见问题</div>
						</td>
						<td background="${cardPath}/images/index_19.jpg">
						<div align="right" class="bai" style="cursor: hand"
							onclick="openMoreFaqs()">更多&gt;&gt;</div>
						</td>
						<td width="13"><img src="${cardPath}/images/index_21.jpg"
							width="13" height="25" /></td>
					</tr>
				</table>
				<table width="333" height="5" border="0">
					<tr>
						<td></td>
					</tr>
				</table>
				<table width="332" height="162" border="0" cellpadding="0"
					cellspacing="0" class="bk">
					<tr>
						<td valign="top" >
						<table width="95%" border="0" align="center" cellpadding="0"
							cellspacing="0">
							<c:forEach items="${faqs}" var="faq">
								<tr>
									<td width="81%" height="25"
										background="${cardPath}/images/bg_1.gif"><span
										class="hei" style="cursor: hand" onclick="openF(${faq.faqId})">${faq.faqTitle}</span></td>
									<td width="19%" background="${cardPath}/images/bg_1.gif"
										class="hei">${faq.faqDate }</td>
								</tr>
							</c:forEach>
						</table>
						</td>
					</tr>
				</table>
				</td>
				<td>&nbsp;</td>
				<td width="333" valign="top">
				<table width="333" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td width="13"><img src="${cardPath}/images/index_16.jpg"
							width="13" height="25" /></td>
						<td width="71" valign="bottom"
							background="${cardPath}/images/index_17.jpg" class="heic">
						<div align="center">用卡知识</div>
						</td>
						<td background="${cardPath}/images/index_19.jpg">
						<div align="right" class="bai" style="cursor: hand"
							onclick="openMoreCW()">更多&gt;&gt;</div>
						</td>
						<td width="13"><img src="${cardPath}/images/index_21.jpg"
							width="13" height="25" /></td>
					</tr>
				</table>
				<table width="333" height="5" border="0">
					<tr>
						<td></td>
					</tr>
				</table>
				<table width="332" height="162" border="0" cellpadding="0"
					cellspacing="0" class="bk">
					<tr>
						<td valign="top">
						<table width="95%" border="0" align="center" cellpadding="0"
							cellspacing="0">
						<c:forEach items="${wds}" var="wd">
									<tr>
									<td width="81%" height="25"
										background="${cardPath}/images/bg_1.gif"><span
										class="hei" style="cursor: hand" onclick="openCW(${wd.wid})">${wd.wtitle}</span></td>
									<td width="19%" background="${cardPath}/images/bg_1.gif"
										class="hei">${wd.wdate }</td>
								</tr>
						</c:forEach>
						</table>
						</td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		<table width="668%" height="20" border="0" cellpadding="0"
			cellspacing="0">
			<tr>
				<td></td>
			</tr>
		</table>
		<table width="668" height="25" border="0" cellpadding="0"
			cellspacing="0">
			<tr>
				<td width="179" background="${cardPath}/images/index_26.jpg">
				<div align="center" class="baid">产品展示</div>
				</td>
				<td background="${cardPath}/images/index_29.jpg">&nbsp;</td>
				<td background="${cardPath}/images/index_29.jpg">&nbsp;</td>
			</tr>
		</table>
		<table width="668%" height="7" border="0" cellpadding="0"
			cellspacing="0">
			<tr>
				<td></td>
			</tr>
		</table>
		<table width="669" height="152" border="0" cellpadding="0"
			cellspacing="0">
			<tr>
				<td align="center" valign="middle"
					background="${cardPath}/images/index_33.jpg"><iframe
					src="getProPics.action" name="in" width="660 marginwidth="
					0" 
                                height="130" marginheight="0"
					scrolling="no" frameborder="0" id="in"> </iframe></td>
			</tr>
		</table>
		</td>
		<td>&nbsp;</td>
		<td width="241" valign="top">
		<table width="241" height="27" border="0" cellpadding="0"
			cellspacing="0" background="${cardPath}/images/huiyuantop.jpg">
			<tr>
				<td width="39">&nbsp;</td>
				<td width="202" class="hong">会员中心</td>
			</tr>
		</table>
		<table width="241" height="15" border="0" cellpadding="0"
			cellspacing="0">
			<tr>
				<td></td>
			</tr>
		</table>
	<script type="text/javascript">

     function hT(){
	document.getElementById("22").style.display='none';
   }
		</script>
		<table width="237" height="159" border="0" align="center"
			cellpadding="0" cellspacing="0"
			background="${cardPath}/images/huiyuanjpg.jpg">
			<tr>
				<td >
				<div id="22" >
				<table width="85%" border="0" align="center" cellpadding="0"
					cellspacing="0" ID="loginPanel" style="backgroundRepeat:no-repeat">
				
					<tr>
						<td height="20">&nbsp;</td>
						<td height="30" align="right">
						<c:if test="${st==0}"><span class="hui"><font color=red>用户名或密码错误!</font></span></c:if></td>
					</tr>
					<form action="${cardPath}/login.action" method="post" name="merch">
					<tr>
						<td width="28%" height="25" class="hui">用户名：</td>
						<td width="72%"><input name="mname" type="text"
							style="BORDER: 1px solid #9FC5BF" id="mname" size="15" /></td>
					</tr>
					<tr>
						<td height="25" class="hui">密码：</td>
						<td><input name="mpwd" type="password"
							style="BORDER: 1px solid #9FC5BF" id="mpwd" size="15" /></td>
					</tr>
					<tr>
						<td height="25" class="hui">验证码：</td>
						<td>
							<input name="yanzh" type="text"
							style="BORDER: 1px solid #9FC5BF" id="yanzh" size="8" onclick="createCode()"  />
							<input type="text"  id="checkCode" class="unchanged" style="width: 80px"  readonly/>
						</td>
					</tr>
					<tr>
						<td height="38" colspan="2" class="hui">
						<div align="center"><img
							src="${cardPath}/images/button_01.jpg" width="57" height="20" onclick="loginMerch()" />&nbsp;&nbsp;&nbsp;
						<img src="${cardPath}/images/button_02.jpg" width="57" height="20" onclick="window.open('regedit.jsp');"/></div>
						</td>
					</tr>
					</form>
					</table>
				
					</div>
			   <c:if test="${st==1}">
			    <table width="85%" border="0" align="center" cellpadding="0"
					cellspacing="0" ID="loginPanel" style="backgroundRepeat:no-repeat">
					<tr><td class=hui >
						<br/>
						欢迎卡户 <font color=blue>${smname}</font>访问本网站！						
					</td></tr>
					<tr>
						<td class=hui >
							<a href="${cardPath}/userInfo.action?uid=${sid}" target="_blank">修改信息</a>
						</td>
					</tr>					
					<tr><td class=hui ><a href='${cardPath}/buym.jsp' target="_blank" >消费查询</a> </td></tr>
					<tr><td class=hui ><a href='${cardPath}/payoff.jsp' target="_blank">缴费查询</a> </td></tr>
					<tr><td class=hui ><a href='${cardPath}/addmoney.jsp' target="_blank">充值查询</a> </td></tr>									 
					<tr><td class=hui ><a href='${cardPath}/default.jsp' >退出</a> </td></tr>
					 </table>
					  <script type="text/javascript">
					  hT();
					  </script>
					</c:if>
					<c:if test="${st==2}">					
					<table width="85%" border="0" align="center" cellpadding="0"
					cellspacing="0" ID="loginPanel" style="backgroundRepeat:no-repeat">
					<c:if test="${isPass == true}">
					<tr><td class=hui >
						<br/>
						欢迎商户<font color=blue>${smname}</font> 访问本网站！																		
						</td>
					</tr>
					<tr>
						<td class=hui >
							<a href="${cardPath}/userInfo.action?uid=${sid}" target="_blank">修改信息</a>
						</td>
					</tr>	
					<tr><td class=hui ><a href='${cardPath}/buym.jsp' target="_blank">消费对账</a> </td></tr>
					<tr><td class=hui ><a href='${cardPath}/payoff.jsp' target="_blank">缴费对账</a> </td></tr>
					<tr><td class=hui ><a href='${cardPath}/addmoney.jsp' target="_blank">充值对账</a> </td></tr>					
					</c:if>
					<c:if test="${isPass == false}">
						<tr>
							<td class=hui>
								<font color="blue">您的信息还未通过审核，还不能执行任何操作！
								</font>
							</td>
						</tr>
					</c:if>
					<tr><td class=hui ><a href='${cardPath}/default.jsp' >退出</a> </td></tr>
					  </table>
					  <script type="text/javascript">
					  hT();
					  </script>
					</c:if>				
				
				</td>
			</tr>
		</table>
	    <input type=hidden value=${st} id="st" />

        <table border="1" cellpadding="0" cellspacing="0" width="241" ><tr><td>
		<table width="241" height="27" border="0" cellpadding="0" cellspacing="0" background="${cardPath}/images/gonggaotop.jpg">
			<tr>
				<td width="39">&nbsp;</td>
				<td width="" class="hong">最新公告
					<div style="text-align:right;display:inline"></div>
				</td>				
				<td class="hong" align="right">
					<a href="/card/viewMore_Bulletin.action" target="_blank" style="color:#D11013;text-decoration:none" target="_blank">公告历史>></a>
				</td>
			</tr>
		</table>
		<table width="241" height="10" border="0" cellpadding="0"
			cellspacing="0">
			<tr>
				<td></td>
			</tr>
		</table>
		<table width="241" height="150" border="0" cellpadding="0"
			cellspacing="0">
			<tr>
				<td>&nbsp;&nbsp;&nbsp; <marquee onMouseOver='this.scrollAmount=0;' onMouseOut="this.scrollAmount = 1"; scrollamount=1
					scrolldelay=20 direction=up height=110 width="220"><span
					class="gg">${bulletin.bulletincontent }</span></marquee></td>
			</tr>
		</table>
		</td></tr></table>
		<table width="241" height="30" border="0" cellpadding="0"
			cellspacing="0">
			<tr>
				<td></td>
			</tr>
		</table>
		<table width="241" border="0" cellpadding="0" cellspacing="0" >
			<tr>
				<td bg><img src="${cardPath}/images/toupiao_01.jpg" width="241"
					height="34" /></td>		
			</tr>
			<tr>
				<td valign="top" background="${cardPath}/images/toupiao_02.jpg">
					<iframe frameborder="no" width="241" src="/card/vote.jsp" align="center" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes">
</iframe> 				
				</td>
			</tr>
			<tr>
				<td><img src="${cardPath}/images/toupiao_05.jpg" width="241"
					height="9" /></td>
			</tr>
		</table>
		</td>
	</tr>
</table>
<table width="945" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td>&nbsp;</td>
	</tr>
</table>
<table width="945" height="69" border="0" align="center" cellpadding="0"
	cellspacing="0" class="bk">
	<tr>
		<td width="25"><img src="${cardPath}/images/yq_35.jpg" width="25"
			height="30" /></td>
		<td width="895" background="${cardPath}/images/yq_07.jpg" class="heic">友情链接</td>
		<td width="25"><img src="${cardPath}/images/yq_36.jpg" width="25"
			height="30" /></td>
	</tr>
	<tr>
		<td height="37">&nbsp;</td>
		<td>
		<jsp:include page="foot.jsp"></jsp:include>		
		</td>
		<td>&nbsp;</td>
	</tr>
</table>
<table width="945" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td width="108" height="105">
		<div align="center"><img src="${cardPath}/images/logo.jpg"
			width="52" height="64" /></div>
		</td>
		<td width="837">
		<div align="center" class="di">石家庄一卡通卡有限公司 （2009-2010）版权所有
		技术支持:网讯科技 冀ICP备05035382号 <br />
		电话：86－0311－88611099 传真：86－0311－88611099 邮箱:ncckefu@163.com<br />
		地址:石家庄市中山西路83号东方大厦1418室</div>
		</td>
	</tr>
</table>
</body>
</html>
